﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MongoDB.Driver;

namespace Teein.Proxy.Bot.DAL
{
    public interface IDAL<T>
    {
        bool Insert(T model);

        bool Update(T model);

        bool Delete(T model);

        bool Delete(IMongoQuery mq);

        T FindOne(IMongoQuery mq);

        IList<T> Find(IMongoQuery mq);
    }
}
